package com.changanhua.map;

import java.util.HashMap;

/**
 * @author changanhua
 */
public class HashMapDemo {

    public static void main(String[] args) {
        HashMap<String, Object> map = new HashMap<>();

        map.put("key01", "value01");
        map.put("key02", "value02");


        map.entrySet().forEach(System.out::println);
        map.keySet().forEach((k) -> System.out.println("key: " + k + ", value: " + map.get(k) + "   k.hashCode()" + k.hashCode()));
    }
}
